package com.zoshine.zzg.pojo.table.base;

/**
 * 表格列信息
 * @author 贾俊峰
 * @time 2017/8/10 15:32
 */
public class Column {
    /**列名*/
    private String columnName;
    /**列注释*/
    private String comment;
    /**在oracle数据库中的类型*/
    private String oracleType;
    /**在mysql数据库中的类型*/
    private String mysqlType;
    /**是否可以为空*/
    private Boolean nullable;
    /**默认值*/
    private String defaultValue;

    public Column(String columnName, String comment, String oracleType, String mysqlType, Boolean nullable,
            Object defaultValue) {
        this.columnName = columnName;
        this.comment = comment;
        this.oracleType = oracleType;
        this.mysqlType = mysqlType;
        this.nullable = nullable;
        if (defaultValue != null) {
            this.defaultValue = defaultValue.toString();
        }
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getOracleType() {
        return oracleType;
    }

    public void setOracleType(String oracleType) {
        this.oracleType = oracleType;
    }

    public String getMysqlType() {
        return mysqlType;
    }

    public void setMysqlType(String mysqlType) {
        this.mysqlType = mysqlType;
    }

    public Boolean getNullable() {
        return nullable;
    }

    public void setNullable(Boolean nullable) {
        this.nullable = nullable;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }
}
